public class Dog extends Animal{

    //    行为:
//    eat(String something)(something表示吃的东西)看家lookHome方法(无参数)


    public Dog() {
    }

    public Dog(int age, String color) {
        super(age, color);
    }

    @Override
    public void eat(String something) {
        System.out.println(getAge() + "岁的" + getColor() + "颜色的狗眯着眼睛侧着头吃" + something);
    }

    public void lookHome(){
        System.out.println("看家");
    }
}
